From 60f88435e43a3b48b1edc6eed4b0d717da283b47 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 14 Sep 2004 20:02:47 +0000 Subject: [PATCH] Copy code from queryloaders.c which turns backslashes in slashes on win32. 2004-09-14 Matthias Clasen * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/queryimmodules.c | 8 ++++++++ 5 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index c3c0010458..c27501e6b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-09-14 Matthias Clasen + * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c + which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO) + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor to the first selected row instead of always to the first row if there is no cursor. (#143270, Jean Bréfort) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c3c0010458..c27501e6b8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-09-14 Matthias Clasen + * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c + which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO) + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor to the first selected row instead of always to the first row if there is no cursor. (#143270, Jean Bréfort) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c3c0010458..c27501e6b8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-09-14 Matthias Clasen + * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c + which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO) + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor to the first selected row instead of always to the first row if there is no cursor. (#143270, Jean Bréfort) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c3c0010458..c27501e6b8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-09-14 Matthias Clasen + * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c + which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO) + * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor to the first selected row instead of always to the first row if there is no cursor. (#143270, Jean Bréfort) diff --git a/gtk/queryimmodules.c b/gtk/queryimmodules.c index 2fe5d61a74..432b9d90c0 100644 --- a/gtk/queryimmodules.c +++ b/gtk/queryimmodules.c @@ -60,6 +60,14 @@ escape_string (const char *str) case '\"': g_string_append (result, "\\\""); break; +#ifdef G_OS_WIN32 + /* Replace backslashes in path with forward slashes, so that + * it reads in without problems. + */ + case '\\': + g_string_append (result, "/"); + break; +#endif default: g_string_append_c (result, c); } -- 2.30.2